package com.example.analysis.controller;

import com.example.analysis.entity.User;
import com.example.analysis.vo.ResponseVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class LoginController {
    @PostMapping("/login")
    ResponseVO<String> login() {
        return ResponseVO.success("success");
    }

    @GetMapping("/info")
    ResponseVO<User> info() {
        return ResponseVO.success(new User("u123","123456",0));
    }
}
